package cn.com.jtang.wedding.service;

import java.util.List;
import java.util.Map;

import cn.com.jtang.wedding.model.User;

public interface UserManager {
	
	//添加用户
	public String add(User user);
	
	//根据用户名得到用户
	public User queryByUsername(String username);
	
	//根据ID查询用户
	public User queryById(long id);
	
	public int deleteById(Long id);
	
	public int updateById(Long id, User user);
	
	public int getCount(Map<String, Object> map);
	
	public List queryAll(Map<String, Object> map, int start,int end);
}
